// [日志级别][时间戳][日志信息][错误文件名称][行数]
#pragma once
#include <iostream>
#include <string>
#include <time.h>

#define INFO 1
#define WARNING 2
#define ERROR 3
#define FATAL 4

#define LOG(level, message) Log(#level, message, __FILE__, __LINE__)


 void Log(std::string level, std::string messages, std::string file_name, int line) {
     std::cout << "[" << level << "]" << "[" << time(nullptr) << "]" << "[" << messages << "]" << "[" << file_name << "]" << "[" << line << "]" << std::endl;
 }